package com.ar4j.sql;

/**
 * An interface defining a source for loading SQL queries by name
 */
public interface INamedQuerySource {

  /**
   * Loads a named query using its name
   * 
   * @param name name of query to load
   * @return the loaded query
   * @throws IllegalArgumentException if no query is found with the given name
   */
  String findQueryByName(String name);
  
}
